package pixelradar.config;

import pixelradar.gui.ModGuiConfig;
import pixelradar.gui.ModGuiConfigHUD;

public class SmallMapModeConfig extends LargeMapModeConfig {
    public SmallMapModeConfig(String configCategory) {
        super(configCategory);
    }

    public void loadConfig() {
        super.loadConfig();
        ConfigurationHandler.configuration.getCategory(this.configCategory).remove("Position");
        ConfigurationHandler.configuration.getCategory(this.configCategory).remove("heightPercent");
    }

    public void setDefaults() {
        this.rotateDef = true;
        this.circularDef = true;
        this.coordsModeDef = coordsModeStringArray[1];
        this.biomeModeDef = coordsModeStringArray[1];
        this.borderModeDef = true;
        this.playerArrowSizeDef = 4;
        this.markerSizeDef = 3;
        this.xPosDef = 97.5D;
        this.yPosDef = 17.0D;
        this.heightPercentDef = 30.0D;
        this.widthPercentDef = 30.0D;
        ConfigurationHandler.configuration.get(this.configCategory, "enabled", this.enabledDef).setRequiresWorldRestart(true);
        ConfigurationHandler.configuration.get(this.configCategory, "rotate", this.rotate).setConfigEntryClass(ModGuiConfig.ModBooleanEntry.class);
        ConfigurationHandler.configuration.getCategory(this.mapPosCategory).setLanguageKey("mw.config.map.ctgy.position").setConfigEntryClass(ModGuiConfigHUD.MapPosConfigEntry.class).setShowInGui(true);
    }
}
